export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {path: '/user/login', component: './User/Login'},
      {path: '/user/register', component: './User/Register'},
    ],
  },
  {path: '/Home', icon: 'smile', component: './Home', name: '首页'},
  // {path: '/welcome', icon: 'smile', component: './Welcome', name: '欢迎页'},

  {
    path: '/admin',
    icon: 'crown',
    name: '管理页',
    // access: 'canAdmin',
    routes: [
      {path: '/admin', redirect: '/admin/user'},
      {icon: 'table', path: '/admin/user', component: './Admin/User', name: '用户管理'},
      {icon: 'table', path: '/admin/interfaceInfo', component: './Admin/interfaceInfo', name: '接口管理'}
    ],
  },
  {
    path: '/Me',
    name: '我的',
    icon: 'smile',
    component: './Me',
  },
  {path: '/', redirect: 'Home'},
  {path: '*', layout: false, component: './404'},
];
